/**
 * @Author: 焦质晔
 * @Date: 2019/6/20
 * @Last Modified by: mikey.zhaopeng
 * @Last Modified time: 2019-12-15 15:21:28
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 列表查询
export const getList = (params) => axios.get(`${SERVER.BASEDATA}/vehicleProduct/colors`, {params})
// 新增
export const addSave = (params) => axios.post(`${SERVER.BASEDATA}/vehicleProduct/colors`, params)
// 编辑
export const emitSave = (params) => axios.put(`${SERVER.BASEDATA}/vehicleProduct/colors/${params.colorId}`, params)
// 颜色导入
export const importColor = (params) => axios.post(`${SERVER.BASEDATA}/vehicleProduct/colors/import`, params)
// 导入模板下载
export const downloadColor = (params) => axios.post(`${SERVER.BASEDATA}/vehicleProduct/colors/export`, params,{responseType: 'blob'})
// 查询所有员工
export const getDealerUser = params => axios.get(`${SERVER.DMSCLOUD_BASEDATA}/basedata/users/getDealerUser`);

